import request from '/@/utils/request';

export function getfetchList(query?: Object) {
	return request({
		url: '/blood/bloodxExam/page',
		method: 'get',
		params: query,
	});
}

export function addObj(obj?: Object) {
	return request({
		url: '/blood/bloodxExam',
		method: 'post',
		data: obj,
	});
}

export function getObj(id?: string) {
	return request({
		url: '/blood/bloodxExam/' + id,
		method: 'get',
	});
}

export function delObjs(ids?: Object) {
	return request({
		url: '/blood/bloodxExam',
		method: 'delete',
		data: ids,
	});
}

export function putObj(obj?: Object) {
	return request({
		url: '/blood/bloodxExam',
		method: 'put',
		data: obj,
	});
}

// 获取体检编号;

export function getBloodExamNumber() {
	return request({
		url: '/admin/bloodxExam/getBloodExamNumber',
		method: 'get',
	});
}



// /admin/bloodxExam/getCustomerByMedicalCard

export function getCustomerByMedicalCard(query?: Object) {
	return request({
		url: '/admin/bloodxExam/getCustomerByMedicalCard',
		method: 'get',
		params: query,
	});
}

// /admin/bloodxExam/getCustomerByName
export function getCustomerByName(query?: Object) {
	return request({
		url: '/admin/bloodxExam/getCustomerByName',
		method: 'get',
		params: query,
	});
}

